﻿@model Pro260Website.Models.ListingViewModel<Domain.Entity.Game>

@{
    Layout = null;
}

<h2 class="title @Html.GetColor(Request.Cookies["color"])" style="font-size: 10px; width: 223px; max-width: 223px;">@Model.Title</h2>
<table style="text-align: center; width: 253px;" class="defaultGrey">
    <tr class="tHeader @Html.GetColor(Request.Cookies["color"])">
        <th style="width: 2%; padding: 5px 15px 0px 15px">Rank</th>
        <th style="width: 90%" >Name</th> 
    </tr>
        @for(int i = 1; i <= @Model.Items.Count(); i++)
        {
            <tr>
                <td>@i</td>
                <td>@Html.ActionLink(@Model.Items.ElementAt(i - 1).Name, "Game", "Game", new { id = @Model.Items.ElementAt(i -1).Id, viewname = "GameWithLayout" }, null)</td>
            </tr>
        }
</table>